package com.aiju.cash.ui.signbank.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.aiju.base.activity.BaseTitleActivity;
import com.aiju.cash.R;
import com.aiju.widgit.layout.SettingItemEditView;
import com.aiju.widgit.layout.SettingItemTextView;

/**
 * @author: 流冥
 * @date: 2017-07-13
 * @Description: 银行通道签约第二步
 */
public class BankSignGallerySecondActivity extends BaseTitleActivity implements View.OnClickListener {
    private SettingItemEditView shop_name;
    private SettingItemEditView shop_sub_name;
    private SettingItemTextView shop_add;
    private SettingItemEditView phone;
    private SettingItemTextView time;
    private SettingItemTextView img;
    private Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bank_sign_gallery_second);
        initView();
    }

    void initView() {
        mAiJuTitleBarView.setCenterTitle("银行通道签约");
        shop_name = (SettingItemEditView) findViewById(R.id.shop_name);
        shop_sub_name = (SettingItemEditView) findViewById(R.id.shop_sub_name);
        shop_add = (SettingItemTextView) findViewById(R.id.shop_add);
        phone = (SettingItemEditView) findViewById(R.id.phone);
        time = (SettingItemTextView) findViewById(R.id.time);
        img = (SettingItemTextView) findViewById(R.id.img);
        btn = (Button) findViewById(R.id.commit);
        shop_name.setEditable(true);
        shop_sub_name.setEditable(true);
        phone.setEditable(true);
        shop_name.getRightView().setHint("须和营业执照保持一致");
        shop_sub_name.getRightView().setHint("请填写");
        phone.getRightView().setHint("请填写");

        shop_add.setOnClickListener(this);
        time.setOnClickListener(this);
        img.setOnClickListener(this);
        btn.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent();
        switch (v.getId()) {
            case R.id.shop_add:
                break;
            case R.id.time:
                break;
            case R.id.img:
                intent.setClass(mContext, UploadShopPicActivity.class);
                startActivity(intent);
                break;
            case R.id.commit:
                break;
        }
    }
}
